{{ define "main" }}
<div ref="streamContainer" class="stream-container">
    <div class="post-list-container post-list-container-shadow">
        {{ $paginator := .Paginate (where .Pages "Type" "ne" "ordinary") }}
        {{ range $paginator.Pages.GroupByDate "2006" }}
        {{/*  {{ range .Paginator.Pages.GroupByDate "2006" }}  */}}
            <a class="a-block">
                <div class="post-item-wrapper post-item-wrapper-no-hover">
                    <div class="post-item post-item-no-gaps">
                        <div class="post-item-info-wrapper">
                            <div class="post-item-title post-item-title-small year">
                                {{ .Key }}
                            </div>
                        </div>
                    </div>
                </div>
            </a>
            {{ range .Pages }}
            <a href="{{ .RelPermalink }}" class="a-block">
                <div class="post-item-wrapper">
                    <div class="post-item post-item-no-gaps">
                        <div class="post-item-info-wrapper">
                            <div class="post-item-title">
                                {{.Title}}
                            </div>
                            {{ partial "post-item-meta.html" . }}
                        </div>
                    </div>
                </div>
            </a>
            {{ end }}
        {{ end }}
        {{ .Page.Scratch.Set "has_paginator" true }}
    </div>
</div>

{{ end }}